x86: highmem handling assistance hypercalls
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 13:29:35 +0000 (13:29 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 13:29:35 +0000 (13:29 +0000)
commit043e01a4f80f4af518008fa60ac73178d315b5e0
treec85c3976c26cc7f9c4480a03b86d949002d96ebe
parent2d80f0404ba4b82e27ada015f89170ff5ccd8e71
x86: highmem handling assistance hypercalls

While looking at the origin of very frequently executed hypercalls I
realized that the high page accessor functions in Linux would be good
candidates to handle in the hypervisor - clearing or copying to/from
a high page is a pretty frequent operation (provided there's enough
memory in the domain). While prior to the first submission I only
measured kernel builds (where the results are not hinting at a
meaningful improvement), I now found time to do a more specific
analysis: page clearing is being improved by about 20%, page copying
doesn't seem to significantly benefit (though that may be an effect of
the simplistic copy_page() implementation Xen currently uses) -
nevertheless I would think that if one function is supported by the
hypervisor, then the other should also be.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/mm.c
xen/arch/x86/x86_64/compat/mm.c
xen/common/kernel.c
xen/include/public/features.h
xen/include/public/xen.h